home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Languguage OS 2
/
Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO
/
gnu
/
recode.lha
/
recode-3.2.4
/
Makefile.in
< prev
next >
Wrap
Makefile
|
1992-10-07
|
7KB
|
244 lines
# Makefile for recode.
# Copyright (C) 1991 Free Software Foundation, Inc.
# Francois Pinard <pinard@iro.umontreal.ca>, 1988.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
SHELL = /bin/sh
#### Start of system configuration section. ####
srcdir = @srcdir@
VPATH = @srcdir@
U = @U@
# If you use gcc, you should either run the fixincludes script that
# comes with it or else use gcc with the -traditional option. Otherwise
# ioctl calls will be compiled incorrectly on some systems.
CC = @CC@
AR = ar
# Set RANLIB = echo if your system doesn't have or need ranlib.
RANLIB = @RANLIB@
# Use cp if you don't have install.
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
# GNU awk (or nawk) and Flex (2.3 or better) are required if merged.c
# is to be reconstructed.
AWK = @AWK@
LEX = @LEX@
# Things you might add to DEFS:
# -DDEFAULT_CODE=... Quoted string giving the default or usual code.
# -DSTDC_HEADERS If you have ANSI C headers and libraries.
# -DUSG If you have System V/ANSI C string and
# memory functions and headers.
# -DMSDOS If you are using Messy-DOS; implies USE_FPUTC.
# -DHAVE_DUP2 If the dup2(3) call is available.
# -DHAVE_PIPE If the pipe(2) call is available.
# -DHAVE_POPEN If the popen(3) call is available.
# -DUSE_FPUTC If merged.c overflows or thrashes the C compiler.
# -DXENIX If enum's are somewhat incompatible with int's.
DEFS = @DEFS@
LDEFS = @LDEFS@
CFLAGS = -g -I$(srcdir) $(DEFS) -DDEFAULT_CODE=\"@DEFAULTCODE@\"
LDFLAGS = -g $(LDEFS)
LIBS = @LIBS@
# Common prefix for installation directories.
# NOTE: Thess directories must exist when you start installation.
prefix = /usr/local
exec_prefix = $(prefix)
# Directory in which to put the executables.
bindir = $(exec_prefix)/bin
# Directory in which to put the Info documentation.
infodir = $(prefix)/info
#### End of system configuration section. ####
C_STEPS = asc8asc7.c ascicdcn.c asciflat.c banglat1.c cccaebcd.c \
cdcaebcd.c cdcnasci.c ebcdccca.c ebcdcdca.c ibmpicon.c \
ibmplat1.c ibmpmaci.c iconibmp.c lat1bang.c lat1ibmp.c \
lat1ltex.c lat1txte.c maciibmp.c
C_STEPOBJS = $Uasc8asc7.o $Uascicdcn.o $Uasciflat.o $Ubanglat1.o $Ucccaebcd.o \
$Ucdcaebcd.o $Ucdcnasci.o $Uebcdccca.o $Uebcdcdca.o $Uibmpicon.o \
$Uibmplat1.o $Uibmpmaci.o $Uiconibmp.o $Ulat1bang.o $Ulat1ibmp.o \
$Ulat1ltex.o $Ulat1txte.o $Umaciibmp.o
L_STEPS = asciltex.l ascitxte.l ltexasci.l ltexlat1.l txteasci.l txtelat1.l
L_STEPOBJS = $Umerged.o
LIBSRCS = getopt.c
LIBOBJS = @LIBOBJS@
HDRS = common.h steps.h
SRCS = recode.c version.c $(C_STEPS) $(L_STEPS) $(LIBSRCS)
OBJS = $Urecode.o $Uversion.o $(C_STEPOBJS) $(L_STEPOBJS) $(LIBOBJS)
DISTFILES = README INSTALL COPYING Buggestions ChangeLog \
configure.in aclocal.m4 Makefile.in configdos.pl config.tcc ansi2knr.c \
mergelex.awk recode.texi ISO-8859 texinfo.tex \
$(HDRS) $(SRCS) c-boxes.el checkit \
configure merged.c recode.info
MSDOS_OBJS = getopt.o
CHECKTEST = @sh $(srcdir)/checkit -v $(srcdir)/COPYING
all: recode recode.info
.PHONY: all
check: recode
$(CHECKTEST) txte txte
$(CHECKTEST) txte lat1
$(CHECKTEST) txte ibmp
$(CHECKTEST) txte icon
$(CHECKTEST) txte bang
$(CHECKTEST) asci ebcd
@echo "All checks completed successfully."
.PHONY: check
install: all
$(INSTALL_PROGRAM) recode $(bindir)/recode
$(INSTALL_DATA) $(srcdir)/recode.info $(infodir)/recode.info
.PHONY: install
uninstall: all
rm -f $(bindir)/recode $(infodir)/recode.info
.PHONY: uninstall
tags: $(SRCS)
ctags $(SRCS)
.PHONY: tags
TAGS: $(SRCS)
etags $(SRCS)
.PHONY: TAGS
texclean:
rm -f *.aux *.cp *.dvi *.fn *.ky *.log *.pg *.toc *.tp *.vr
.PHONY: texclean
mostlyclean: texclean
rm -f *~ *.o core recode
.PHONY: mostlyclean
clean: mostlyclean
.PHONY: clean
distclean: clean
rm -f tags TAGS Makefile config.status
.PHONY: distclean
realclean: distclean
rm -f recode.info table.info merged.c
.PHONY: realclean
dist: $(DISTFILES)
echo recode-`sed -e '/version_string/!d' -e 's/[^0-9.]*\([0-9.]*\).*/\1/' -e q < version.c` > .fname
rm -rf `cat .fname`
mkdir `cat .fname`
ln $(DISTFILES) `cat .fname`
tar chZf `cat .fname`.tar.Z `cat .fname`
rm -rf `cat .fname` .fname
.PHONY: dist
dist.dos: $(DISTFILES)
rm -rf dist.dos
rm -f recode.zoo
mkdir dist.dos
cp $(DISTFILES) dist.dos
perl configdos.pl config.tcc > dist.dos/makefile
echo "$(OBJS) $(MSDOS_OBJS)" \
| tr -s ' ' "\012" | sed 's/\.o$$/.obj/' > dist.dos/objects.lst
cd dist.dos; chmod +w *; ../recode :ibmpc *; zoo ahq ../recode *
rm -rf dist.dos
.PHONY: dist.dos
Makefile: Makefile.in config.status
./config.status
config.status: configure
./configure --no-create
configure: configure.in
autoconf
recode.info: recode.texi
makeinfo $(srcdir)/recode.texi
recode.dvi: recode.texi
tex $(srcdir)/recode.texi
table.info: table.texi
makeinfo $(srcdir)/table.texi
recode: $(OBJS)
$(CC) $(LDFLAGS) -o recode $(OBJS) $(LIBS)
merged.c: mergelex.awk $(L_STEPS)
(cd $(srcdir); $(AWK) -f mergelex.awk $(L_STEPS)) | $(LEX) -t8 > merged.tmp
rm -f $(srcdir)/mergelex.tmp
mv merged.tmp merged.c
ansi2knr: ansi2knr.c
$(CC) $(LDFLAGS) -o ansi2knr $(CFLAGS) $<
_recode.c: recode.c ansi2knr
./ansi2knr $(srcdir)/recode.c > _recode.c
_version.c: version.c ansi2knr
./ansi2knr $(srcdir)/version.c > _version.c
_asc8asc7.c: asc8asc7.c ansi2knr
./ansi2knr $(srcdir)/asc8asc7.c > _asc8asc7.c
_ascicdcn.c: ascicdcn.c ansi2knr
./ansi2knr $(srcdir)/ascicdcn.c > _ascicdcn.c
_asciflat.c: asciflat.c ansi2knr
./ansi2knr $(srcdir)/asciflat.c > _asciflat.c
_banglat1.c: banglat1.c ansi2knr
./ansi2knr $(srcdir)/banglat1.c > _banglat1.c
_cccaebcd.c: cccaebcd.c ansi2knr
./ansi2knr $(srcdir)/cccaebcd.c > _cccaebcd.c
_cdcaebcd.c: cdcaebcd.c ansi2knr
./ansi2knr $(srcdir)/cdcaebcd.c > _cdcaebcd.c
_cdcnasci.c: cdcnasci.c ansi2knr
./ansi2knr $(srcdir)/cdcnasci.c > _cdcnasci.c
_ebcdccca.c: ebcdccca.c ansi2knr
./ansi2knr $(srcdir)/ebcdccca.c > _ebcdccca.c
_ebcdcdca.c: ebcdcdca.c ansi2knr
./ansi2knr $(srcdir)/ebcdcdca.c > _ebcdcdca.c
_ibmpicon.c: ibmpicon.c ansi2knr
./ansi2knr $(srcdir)/ibmpicon.c > _ibmpicon.c
_ibmplat1.c: ibmplat1.c ansi2knr
./ansi2knr $(srcdir)/ibmplat1.c > _ibmplat1.c
_ibmpmaci.c: ibmpmaci.c ansi2knr
./ansi2knr $(srcdir)/ibmpmaci.c > _ibmpmaci.c
_iconibmp.c: iconibmp.c ansi2knr
./ansi2knr $(srcdir)/iconibmp.c > _iconibmp.c
_lat1bang.c: lat1bang.c ansi2knr
./ansi2knr $(srcdir)/lat1bang.c > _lat1bang.c
_lat1ibmp.c: lat1ibmp.c ansi2knr
./ansi2knr $(srcdir)/lat1ibmp.c > _lat1ibmp.c
_lat1ltex.c: lat1ltex.c ansi2knr
./ansi2knr $(srcdir)/lat1ltex.c > _lat1ltex.c
_lat1txte.c: lat1txte.c ansi2knr
./ansi2knr $(srcdir)/lat1txte.c > _lat1txte.c
_maciibmp.c: maciibmp.c ansi2knr
./ansi2knr $(srcdir)/maciibmp.c > _maciibmp.c
_merged.c: merged.c ansi2knr
./ansi2knr $(srcdir)/merged.c > _merged.c
$Urecode.o: steps.h
$(OBJS): common.h